package 线程.day2.demo6;

public class Test2 {
    public static void main(String[] args) {
        A a=new A();
        B b=new B();

        Thread t1=new Thread(a,"线程a");
        Thread t2=new Thread(b,"线程b");
        a.t2=t2;

        t1.start();
        t2.start();
    }
}
